<?php
namespace app\admin\controller;

use \think\Controller;
use \think\Db;
class Test extends Common
{
    /**
     * 账号密码登录
     * @return bool
     * 参数：账号、密码
     * 返回值：0参数错误，1手机号码错误，2密码格式错误，3没有此用户，4密码错误，5成功
     */
    public  function one()
    {
        header("Access-Control-Allow-Origin:*");
		$id = $_REQUEST['id'];
		$i = (string)$id;
        $this->Jpush("{$i}",'推送测试',array('hello'=>'ioioiioi'));
    }
    public  function many()
    {
        header("Access-Control-Allow-Origin:*");
        $a = explode(',',$_REQUEST['id']);
		$list = array();
		foreach($a as $v){
			$i = (string)$v;
			array_push($list,$i);
		}
        $this->Jpush("{$list}",'推送测试',array('hello'=>'ioioiioi'));
    }

   


}